home *** CD-ROM | disk | FTP | other *** search
- Path: transformer.pti-us.com.!vermont
- From: rj.mills@pti-us.com (Dick Mills)
- Newsgroups: comp.lang.c++
- Subject: Can I use new in constructors of static objects?
- Date: Fri, 05 Jan 96 21:34:13 GMT
- Organization: Power Technologies Inc.
- Distribution: world
- Message-ID: <4ck5fv$lp1@transformer.pti-us.com>
- NNTP-Posting-Host: vermont.pti-us.com
- X-Newsreader: News Xpress Version 1.0 Beta #2.1
-
- I'm tracking a strange bug, that has to do with the new/delete
- heap being damaged. It seems to have to do with an object
- that uses delete and new from the constructor. This instance
- of the object is module static.
-
- It occured to me that the language might not gurantee that
- the preamble to initialize heap management is executed before
- static object constructors.
-
- We're using cfront on Solaris.
-
- Am I barking up the wrong tree?
-
-
-